#include <stdio.h>
#include <string.h>
int main()
{
    int length;
    char ar[32] = {0};
    char br[32] = {0};
    printf("请输入一个字符串:");
    scanf("%31s",br);

    length = strlen(br);
    if (length > 0)
    {
        for (int i = 0; i < length; i++)
        {
            ar[i]= br[length - i - 1];
        }
        
    }
    
    printf("%s",ar);    
    return 0;
}